package com.etooling.framework.conf;

import com.etooling.framework.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(1)
public class InitFrameworkData implements ApplicationRunner {
    @Autowired
    CompanyService companyService;
    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        companyService.initCompanyData();
    }
}